unicodePlainText
Type
property
Summary
Returns the contents of a field chunk as plain text.
Syntax
set the unicodePlainText of [chunk of] field to string
get the unicodePlainText of [chunk of] field
Description
Use the unicodePlainText property to get the content of a field as plain text with any listStyle properties being converted appropriately into plain-text for the paragraphs they affect.
When you get a field's unicodePlainText, the field's text is converted to plain text with any listStyle property being converted appropriately into plain-text.
Any paragraphs with listStyle set are prefixed by an appropriate plain-text form of the bullet or index. The property returns text encoded in UTF-16 in host byte-order.
Important: As this property is deprecated, it should not be used in new code; simply get the plainText as normal. The following are now equivalent:
get the unicodePlainText of field 1
get textEncode(the plainText of field 1, \"UTF16\")
Examples
write the unicodePlainText of field 1 to file myTextFile
put word 1 to 3 of the unicodePlainText of field "lorem" into tFirstThreeWords
Related
property: plainText, dontWrap, unicodeFormattedText, formattedText
Compatibility and Support
Introduced
LiveCode 4.6
OS
mac
windows
linux
Platforms
desktop
server